<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: member.php 24411 2011-09-19 05:09:03Z monkey $
 */

define( 'APPTYPEID', 4 );
define( 'CURSCRIPT', 'portal' );

require './source/class/class_core.php';

$discuz			= C::app();
$discuz->init();
$modarray		= array( 'index', 'master', 'work', 'message' );
$mod			= !in_array( $_GET['mod'], $modarray ) ? 'index' : $_GET['mod'];
$mid			= $_GET['mid'];
$master			= C::t( 'master_main' )->fetch( $mid );
if( empty( $mid ) || empty( $master ) )
	$mod		= 'index';
else{
	C::t( 'master_main' )->update( $mid, array( 'view' => ++$master['view'] ) );
	$_G['master']	= $master;
}

define( 'CURMODULE', $mod );
require DISCUZ_ROOT.'./source/module/master/master_'.$mod.'.php';

?>